﻿package  
{
	import flash.display.MovieClip;
	
	/**
	 * ...
	 * @author Paul Forest
	 */
	
	public class MatchedPersonUI extends MatchedPersonSymbol 
	{
		
		
		public function MatchedPersonUI(me:Person, match:Match) 
		{
			super();
			
			meetingPlace_txt.text = match.station.getDesciption();
			
			var other:Person;
			if (match.person1 == me) { 
				other = match.person2 
			} else { 
				other = match.person1;
			};
			
			name_txt.text = other.firstName + " " + other.lastName;
			
			var s:String = "";
			if (other.email) { s += "Email: " + other.email + "\n"; }
			if (other.url) { s += "Web: " + other.url; }
			contactInfo.text = s;
			
			skills_txt.text = other.hasSkills.join(", ");
		}
		
	}

}